package com.jielin.handling.entity.tsuspect;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jielin.handling.bean.base.BaseSearch ;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by wangjienice on 2019/3/15.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class SuspectVo extends BaseSearch {
    private String id;
    private String name;
    private String policeId;
    private String idValue;
    private String caseName;
    private String suspectState;
    private Date creatDate;
    private Date modifyDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;
    private String suspectId;//嫌疑人id

    @Override
    public void setQueryCondition(JSONObject queryCondition) {
        this.id = queryCondition.getString("id");//嫌疑人id
        this.name = queryCondition.getString("name");//嫌疑人姓名
        this.startDate = queryCondition.getDate("startDate");//嫌疑人开始时间
        this.endDate = queryCondition.getDate("endDate");//嫌疑人结束时间
        this.policeId = queryCondition.getString("policeId");//嫌疑人结束时间
        this.suspectId = queryCondition.getString("suspectId");//嫌疑人id


    }


}
